package com.sudo.boot.mapper.sys.model.bo;

import com.sudo.boot.base.constant.enums.EnumStatus;
import com.sudo.boot.core.validenum.EnumValues;
import com.sudo.boot.core.validenum.FxwPassword;
import com.sudo.boot.core.validenum.FxwSomeName;
import com.sudo.boot.core.validenum.FxwUsername;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotEmpty;
import lombok.Data;

import java.util.List;

@Data
public class SysUserBoAdd {
    @FxwSomeName("昵称")
    private String nickName;

    @FxwUsername
    private String username;

    @FxwPassword
    private String password;

    /**
     * 角色状态
     * {@link com.sudo.boot.base.constant.enums.EnumStatus}
     */
    @NotBlank(message = "用户状态不能为空")
    @EnumValues(EnumStatus.class)
    private String status;

    @NotEmpty(message = "角色不能为空")
    private List<String> roleCodeList;

    private String note;
}
